package service

import (
	"blog/app/models"
	"blog/config"
	"blog/utils"
	"github.com/gin-gonic/gin"
)

// GetUserBasicList 获取userbasic数据
func GetUserBasicList(c *gin.Context) {
	var userBasicModel []models.UserBasic
	err := utils.MySqlDB.Model(&userBasicModel).Limit(10).Find(&userBasicModel).Error
	if err != nil {
		CommonCJsonReply(c, config.ERROR, "获取数据db失败")
		return
	}
	CommonCJsonReply(c, config.SUCCESS, userBasicModel)
}
